﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
    public partial class Account
    {
        partial void Account_Created()
        {
            this.CreatedTime = DateTime.Now;
            this.IsActive = true;
        }

        partial void FullName_Compute(ref string result)
        {
            // Set result to the desired field value
            if (this.Greeting != null) result = this.Greeting.Name + " ";
            if (!string.IsNullOrEmpty(this.Title)) result = result + this.Title + " ";
            if (!string.IsNullOrEmpty(this.FirstName)) result = result + this.FirstName + " ";
            if (!string.IsNullOrEmpty(this.Name)) result = result + this.Name;
        }
    }
}
